<#include "/common/head.html"/>

 <div class="easyui-panel addPage" data-options="fit:true,border:false,novalidate:true">
    <form class="easyui-form" id="ff" method="post" data-options="novalidate:true">
        <table class="table1">
        	
            <tr>
           		<th><span>商品名称：</span></th>
               	<td>
               		<div class="wrap_input"><input class="easyui-textbox" type="text" name="goodsName" value="" data-options="fit:true"></input></div>
           		</td>
           	</tr>
            <tr>	
           		<th><span>商品售价：</span></th>
               	<td>
               		<div class="wrap_input"><input class="easyui-textbox" type="text" name="commodityprice" value="" data-options="fit:true"></input></div>
           		</td>
            </tr>
               <tr>	
           		<th><span>总需份额：</span></th>
               	<td>
               		<div class="wrap_input"><input class="easyui-textbox" type="text" name="partion" value="" data-options="fit:true"></input></div>
           		</td>
            </tr>
               <tr>	
           		<th><span>每份额：</span></th>
               	<td>
               		<div class="wrap_input"><input class="easyui-textbox" type="text" name="perpartion" value="" data-options="fit:true"></input></div>
           		</td>
            </tr>
               <tr>	
           		<th><span>方案编号：</span></th>
               	<td>
               		<div class="wrap_input"><input class="easyui-textbox" type="text" name="competitionid" value="" data-options="fit:true"></input></div>
           		</td>
            </tr>
             <tr>
           		<th><span>夺宝开始时间：</span></th>
               <td>
                   <div class="wrap_input"> <input class="easyui-datetimebox"  name="endtime" value="" ></div>
               </td>
            </tr>
             
           
            <tr>
           		<th><span>夺宝结束时间：</span></th>
            <!--    	<td>
               		<div class="wrap_input"><input class="easyui-textbox" type="text" name="endtime" value="" data-options="fit:true, required:true"></input></div>
           		</td> -->
           		<td><div class="wrap_input"> <input class="easyui-datetimebox"  name="endtime" value="" ></div>
              </td>
            </tr>
            <tr>
           		<th><span>下一期间隔时间时间：</span></th>
               	<td>
               		<div class="wrap_input"><input class="easyui-textbox" type="text" name="nextinterval" value="" data-options="fit:true, required:true"></input></div>
           		</td>
            </tr>
        </table>
    </form>
</div>
<script>
top.window.subPage.save = save;
function save() {
	if($("#ff").form('enableValidation').form('validate')) {
		$("#ff").form('submit', {
			url: "update",
			onSubmit: function () {},
			success: function (data) {
				top.window.closeWindow();
				top.window.subPage.loadCurrDatagrid();
			}
		});
	}
}
 function getParam() {
	var param = {
			"goodsName": $(":input[name='goodsName']").val(),
			"commodityprice": $(":input[name='commodityprice']").val(),
			"partion": $(":input[name='partion']").val(),
			"perpartion": $(":input[name='perpartion']").val(),
			"competitionid": $(":input[name='competitionid']").val(),
			"starttime": $(":input[name='starttime']").val(),
			"endtime": $(":input[name='endtime']").val(),
			"nextinterval": $(":input[name='nextinterval']").val()
	}
	for(key in param) {
		if(!param[key]) {
			delete param[key];
		}
	}
	return param;


//扩展js
</script>
<#include "/common/foot.html"/>
